<%--@elvariable id="airGasParameter" type="com.infitecs.eyas.boiler.model.AirGasParameter"--%>
<%--
  Created by IntelliJ IDEA.
  User: Demon
  Date: 2015/5/13
  Time: 10:44
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%@include file="../includes/head.jsp" %>
    <title>${menu.menuName}</title>

</head>
<body class="page-header-fixed page-quick-sidebar-over-content">
<%@include file="../includes/top.jsp" %>
<div class="page-container">
    <%@include file="../includes/sidebar.jsp" %>
    <div class="page-content-wrapper">
        <div class="page-content">
            <%@include file="../includes/current.jsp" %>
            <div class="row">
                <div class="col-md-12">
                    <div class="portlet box">
                        <div class="portlet-body form">
                            <div class="form-body">
                                <!--BEGIN LEFT-->
                                <div class="col-md-6">
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="aTypeStyle control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                设定空气预热器进口一次风温度
                                            </label>

                                            <div class="col-md-9">
                                                <input type="text" class="form-control input-inline"
                                                       id="airGas_E31" value="${airGasParameter==null?"":airGasParameter.inOnceWindTemperatureShow}">
														<span class="help-inline">
														℃ </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="aTypeStyle control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                设定空气预热器进口二次风温度
                                            </label>

                                            <div class="col-md-9">
                                                <input type="text" class="form-control input-inline"
                                                       id="airGas_E32"
                                                       value="${airGasParameter==null?"":airGasParameter.inTwiceWindTemperatureShow}">
														<span class="help-inline">
														℃ </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="aTypeStyle control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                设定空气预热器出口一次风温度
                                            </label>

                                            <div class="col-md-9">
                                                <input type="text" class="form-control input-inline"
                                                       id="airGas_E33"
                                                       value="${airGasParameter==null?"":airGasParameter.outOnceWindTemperatureShow}">
														<span class="help-inline">
														℃ </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="aTypeStyle control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                设定空气预热器出口二次风温度
                                            </label>

                                            <div class="col-md-9">
                                                <input type="text" class="form-control input-inline"
                                                       id="airGas_E34"
                                                       value="${airGasParameter==null?"":airGasParameter.outTwiceWindTemperatureShow}">
														<span class="help-inline">
														℃ </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="aTypeStyle control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                设定入磨煤机入口一次风温度
                                            </label>

                                            <div class="col-md-9">
                                                <input type="text" class="form-control input-inline"
                                                       id="airGas_E35"
                                                       value="${airGasParameter==null?"":airGasParameter.coalInOnceWindTemperatureShow}">
														<span class="help-inline">
														℃ </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="aTypeStyle control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                设定一次风率
                                            </label>

                                            <div class="col-md-9">
                                                <input type="text" class="form-control input-inline"
                                                       id="airGas_E42" value="${airGasParameter==null?"":airGasParameter.onceWindRateShow}">
														<span class="help-inline">
														% </span>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--END LEFT-->
                                <!--BEGIN RIGHT-->
                                <div class="col-md-6">
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="aTypeStyle control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                飞灰分额
                                            </label>

                                            <div class="col-md-9">
                                                <input type="text" class=" form-control input-inline"
                                                       id="airGas_E28"  value="${airGasParameter==null?"0.9":airGasParameter.e28Show}">
														<span class="help-inline">
														% </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="aTypeStyle aTypeStyle control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                炉膛漏风率
                                            </label>

                                            <div class="col-md-9">
                                                <input type="text" class="form-control input-inline"
                                                       id="airGas_E43"  value="${airGasParameter==null?"0.05":airGasParameter.e43Show}">
														<span class="help-inline">
														% </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="aTypeStyle control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                制粉系统漏风率
                                            </label>

                                            <div class="col-md-9">
                                                <input type="text" class="form-control input-inline"
                                                       id="airGas_E44" value="${airGasParameter==null?"0.05":airGasParameter.e44Show}">
														<span class="help-inline">
														% </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="aTypeStyle control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                炉膛出口过量空气系数
                                            </label>

                                            <div class="col-md-9">
                                                <input type="text" class="form-control input-inline"
                                                       id="airGas_E45"
                                                       value="${airGasParameter==null?"":airGasParameter.hearthOverOutAirCoefficientShow}">
                                             <span class="help-inline">
														/ </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="aTypeStyle control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                空气预热器漏风率（保证值）
                                            </label>

                                            <div class="col-md-9">
                                                <input type="text" class="form-control input-inline"
                                                       id="airGas_E46"
                                                       value="${airGasParameter==null?"":airGasParameter.airPreheaterAirLeakageCoefficientShow}">
														<span class="help-inline">
														% </span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                空气预热器型式
                                            </label>

                                            <div class="col-md-9">
                                                <select id="airGas_E111">
                                                    <option value="2" name="warehouse">回转式三分仓</option>
                                                    <option value="1" nam="warehouse" <c:if
                                                            test="${airGasParameter.warehouse == 1}"> selected </c:if>>
                                                        回转式四分仓
                                                    </option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-12 margin-bottom-10">
                                        <div class="form-group">
                                            <label class="aTypeStyle control-label col-md-3"
                                                   style="padding-left: 0px; padding-right: 0px;">
                                                设定空气预热器出口烟风温度（未修正）
                                            </label>

                                            <div class="col-md-7">
                                                <input type="text" class="form-control input-inline"
                                                       id="airGas_E50" value="${airGasParameter==null?"":airGasParameter.outAirTemperature}">
														<span class="help-inline">
														℃ </span>
                                            </div>
                                            <div class="col-md-2">
                                                <button type="button" class="btn green" id="check">验证</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <!--END RIGHT-->
                            </div>
                        </div>
                    </div>
                </div>

                <div class="form-group">
                    <div class="form-body">
                        <div class="row">
                            <div class="col-md-4">
                            </div>
                            <div class="col-md-6">
                                <button type="button" class="btn green" id="save"
                                        onclick="airGas.airGasSave()">确定
                                </button>
                                <button type="button" class="btn green" id="nextPage"
                                        onclick="airGas.airGasNext()">下一页
                                </button>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
<input type="hidden" id="caseId" value="${caseId}" name="caseId">
<input type="hidden" id="addFlag" value="${airGasParameter==null?"add":"edit"}" name="addFlag">

<div class="modal fade bs-modal-lg" id="modal" tabindex="-1" data-keyboard="false" aria-hidden="true"
     data-backdrop="static">
    <div class="modal-dialog modal-lg">
        <div class="modal-content" id="modalContent">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
                <h4 class="modal-title" id="modalTitle"></h4>
            </div>
            <div class="modal-body">
                <div class="row">
                    <div class="col-md-12">
                        空气预热器出口最低排烟温度(未修正)为:<span id="res"></span>
                    </div>
                    <div class="col-md-12">
                        结果：
                        <div color="red" id="Y">合格</div>
                        <div color="red" id="N">不合格</div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">

            </div>
        </div>
    </div>
</div>
<%@include file="../includes/footer.jsp" %>
<%@include file="../includes/bottomscript.jsp" %>
<script type="text/javascript"
        src="<c:url value="/js/bower_components/DataTables/media/js/jquery.dataTables.min.js"/>"></script>
<script type="text/javascript"
        src="<c:url value="/js/global/plugins/datatables/plugins/bootstrap/dataTables.bootstrap.js"/>"></script>
<script type="text/javascript"
        src="<c:url value="/js/bower_components/ztree_v3/js/jquery.ztree.core-3.5.min.js"/>"></script>
<script type="text/javascript"
        src="<c:url value="/js/bower_components/ztree_v3/js/jquery.ztree.excheck-3.5.min.js"/>"></script>
<script src="<c:url value="/js/boiler/airGas1.js"/>" type="text/javascript"></script>
<script>
    $(document).ready(function () {
        var caseId = $("#caseId").val();
        var step='<%=request.getAttribute("step")==null?"":request.getAttribute("step")%>'
        if (caseId == ""||step!="") {
            var obj=getUrlByStep(step)
            toast.error(obj.message);
            setTimeout(function () {
                window.location.href = obj.url;
            }, 1200);
        }
        airGas.init();
    })
</script>

<script type="text/javascript">
    $(function () {
        <%
        String message = (String) request.getAttribute("message");
        if(message!=null&&!"".equals(message)){
        if(message.equals("success")){
        %>
        toast.success("操作成功");
        <%
        }else{
        %>
        toast.error("<%=request.getAttribute("message")%>");
        <%
         }
            }
       %>
    });
</script>
</body>
</html>
